import 'package:explore/act/main.dart';
import 'package:explore/provider/person_info.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:provider/provider.dart';
import 'login/main.dart';
import 'register/main.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider<PersonInfo>(
        create: (ctx) => PersonInfo(),
        child: FluentApp(
          theme: FluentThemeData(cardColor: Colors.white),
          routes: {
            "/": (context) => const Login(),
            "/register": (context) => const Register(),
            "/act": (context) => const Act(),
          },
        ));
  }
}
